package group.sicher.common.entity;

import group.sicher.common.constant.senum.IdCardTypeEnum;

import javax.persistence.*;
import java.util.Objects;

/**
 * @Auth rock
 * @Date 2019/7/1 21:08
 * @description
 */
@Entity
@Table(name = "wm_shop_license")
public class ShopLicenseEntity {

    private Long id;
    private Long shopId;
    private IdCardTypeEnum legalIdcardType;
    private String legalIdcardCode;
    private String legalName;
    private String legalMobile;
    private String idcardBackImg;
    private String idcardFrontImg;
    private String idcardHandImg;
    private String businessImg;
    private String businessCode;
    private String businessName;
    private String businessAddress;
    private Long businessBeginAt;
    private Long businessEndAt;
    private String licenseImg;
    private Long storeCardType;
    private String licenseCode;
    private String licenseName;
    private String licenseAddress;
    private Long licenseBeginAt;
    private Long licenseEndAt;
    private String bankAccountName;
    private Integer bankAccountIdcardType;
    private String bankAccountIdcardCode;
    private String bankAccountCode;
    private Long bankProvice;
    private Long bankCity;
    private Long bankArea;
    private Long bankId;
    private Long bankBranchId;
    private String bankMobile;

       @Id
   @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "shop_id", nullable = true)
    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Basic
    @Column(name = "legal_idcard_type", nullable = true)
    public IdCardTypeEnum getLegalIdcardType() {
        return legalIdcardType;
    }

    public void setLegalIdcardType(IdCardTypeEnum legalIdcardType) {
        this.legalIdcardType = legalIdcardType;
    }

    @Basic
    @Column(name = "legal_idcard_code", nullable = true, length = 50)
    public String getLegalIdcardCode() {
        return legalIdcardCode;
    }

    public void setLegalIdcardCode(String legalIdcardCode) {
        this.legalIdcardCode = legalIdcardCode;
    }

    @Basic
    @Column(name = "legal_name", nullable = true, length = 60)
    public String getLegalName() {
        return legalName;
    }

    public void setLegalName(String legalName) {
        this.legalName = legalName;
    }

    @Basic
    @Column(name = "legal_mobile", nullable = true, length = 20)
    public String getLegalMobile() {
        return legalMobile;
    }

    public void setLegalMobile(String legalMobile) {
        this.legalMobile = legalMobile;
    }

    @Basic
    @Column(name = "idcard_back_img", nullable = true, length = 255)
    public String getIdcardBackImg() {
        return idcardBackImg;
    }

    public void setIdcardBackImg(String idcardBackImg) {
        this.idcardBackImg = idcardBackImg;
    }

    @Basic
    @Column(name = "idcard_front_img", nullable = true, length = 500)
    public String getIdcardFrontImg() {
        return idcardFrontImg;
    }

    public void setIdcardFrontImg(String idcardFrontImg) {
        this.idcardFrontImg = idcardFrontImg;
    }

    @Basic
    @Column(name = "idcard_hand_img", nullable = true, length = 255)
    public String getIdcardHandImg() {
        return idcardHandImg;
    }

    public void setIdcardHandImg(String idcardHandImg) {
        this.idcardHandImg = idcardHandImg;
    }

    @Basic
    @Column(name = "business_img", nullable = true, length = 500)
    public String getBusinessImg() {
        return businessImg;
    }

    public void setBusinessImg(String businessImg) {
        this.businessImg = businessImg;
    }

    @Basic
    @Column(name = "business_code", nullable = true, length = 100)
    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    @Basic
    @Column(name = "business_name", nullable = true, length = 50)
    public String getBusinessName() {
        return businessName;
    }

    public void setBusinessName(String businessName) {
        this.businessName = businessName;
    }

    @Basic
    @Column(name = "business_address", nullable = true, length = 100)
    public String getBusinessAddress() {
        return businessAddress;
    }

    public void setBusinessAddress(String businessAddress) {
        this.businessAddress = businessAddress;
    }

    @Basic
    @Column(name = "business_begin_at", nullable = true)
    public Long getBusinessBeginAt() {
        return businessBeginAt;
    }

    public void setBusinessBeginAt(Long businessBeginAt) {
        this.businessBeginAt = businessBeginAt;
    }

    @Basic
    @Column(name = "business_end_at", nullable = true)
    public Long getBusinessEndAt() {
        return businessEndAt;
    }

    public void setBusinessEndAt(Long businessEndAt) {
        this.businessEndAt = businessEndAt;
    }

    @Basic
    @Column(name = "license_img", nullable = true, length = 500)
    public String getLicenseImg() {
        return licenseImg;
    }

    public void setLicenseImg(String licenseImg) {
        this.licenseImg = licenseImg;
    }

    @Basic
    @Column(name = "store_card_type", nullable = true)
    public Long getStoreCardType() {
        return storeCardType;
    }

    public void setStoreCardType(Long storeCardType) {
        this.storeCardType = storeCardType;
    }

    @Basic
    @Column(name = "license_code", nullable = true, length = 60)
    public String getLicenseCode() {
        return licenseCode;
    }

    public void setLicenseCode(String licenseCode) {
        this.licenseCode = licenseCode;
    }

    @Basic
    @Column(name = "license_name", nullable = true, length = 60)
    public String getLicenseName() {
        return licenseName;
    }

    public void setLicenseName(String licenseName) {
        this.licenseName = licenseName;
    }

    @Basic
    @Column(name = "license_address", nullable = true, length = 100)
    public String getLicenseAddress() {
        return licenseAddress;
    }

    public void setLicenseAddress(String licenseAddress) {
        this.licenseAddress = licenseAddress;
    }

    @Basic
    @Column(name = "license_begin_at", nullable = true)
    public Long getLicenseBeginAt() {
        return licenseBeginAt;
    }

    public void setLicenseBeginAt(Long licenseBeginAt) {
        this.licenseBeginAt = licenseBeginAt;
    }

    @Basic
    @Column(name = "license_end_at", nullable = true)
    public Long getLicenseEndAt() {
        return licenseEndAt;
    }

    public void setLicenseEndAt(Long licenseEndAt) {
        this.licenseEndAt = licenseEndAt;
    }

    @Basic
    @Column(name = "bank_account_name", nullable = true, length = 20)
    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    @Basic
    @Column(name = "bank_account_code", nullable = true, length = 20)
    public String getBankAccountCode() {
        return bankAccountCode;
    }

    public void setBankAccountCode(String bankAccountCode) {
        this.bankAccountCode = bankAccountCode;
    }

    @Basic
    @Column(name = "bank_provice", nullable = true)
    public Long getBankProvice() {
        return bankProvice;
    }

    public void setBankProvice(Long bankProvice) {
        this.bankProvice = bankProvice;
    }

    @Basic
    @Column(name = "bank_city", nullable = true)
    public Long getBankCity() {
        return bankCity;
    }

    public void setBankCity(Long bankCity) {
        this.bankCity = bankCity;
    }

    @Basic
    @Column(name = "bank_area", nullable = true)
    public Long getBankArea() {
        return bankArea;
    }

    public void setBankArea(Long bankArea) {
        this.bankArea = bankArea;
    }

    @Basic
    @Column(name = "bank_id", nullable = true)
    public Long getBankId() {
        return bankId;
    }

    public void setBankId(Long bankId) {
        this.bankId = bankId;
    }

    @Basic
    @Column(name = "bank_branch_id", nullable = true)
    public Long getBankBranchId() {
        return bankBranchId;
    }

    public void setBankBranchId(Long bankBranchId) {
        this.bankBranchId = bankBranchId;
    }

    @Basic
    @Column(name = "bank_mobile", nullable = true, length = 20)
    public String getBankMobile() {
        return bankMobile;
    }

    public void setBankMobile(String bankMobile) {
        this.bankMobile = bankMobile;
    }

    @Basic
    @Column(name = "bank_account_idcard_type")
    public Integer getBankAccountIdcardType() {
        return bankAccountIdcardType;
    }

    public void setBankAccountIdcardType(Integer bankAccountIdcardType) {
        this.bankAccountIdcardType = bankAccountIdcardType;
    }

    @Basic
    @Column(name = "bank_account_idcard_code")
    public String getBankAccountIdcardCode() {
        return bankAccountIdcardCode;
    }

    public void setBankAccountIdcardCode(String bankAccountIdcardCode) {
        this.bankAccountIdcardCode = bankAccountIdcardCode;
    }
}
